#ifndef TYPEDEFS_H
#define TYPEDEFS_H

#include <Eigen/Core>
#include <Eigen/Geometry>
#include <Eigen/src/Geometry/Quaternion.h>


#define USE_FLOAT

namespace Math
{

#ifdef USE_FLOAT
typedef float Real;
#else
typedef double Real;
#endif

inline Real toRadians(const Real &val) { return val*M_PI/180.0;}
inline Real toDegrees(const Real &val) { return val*180.0/M_PI;}


}

#endif // TYPEDEFS_H
